﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Glorysoft.EAP.Core.Entities.Socket
{
    /// <summary>
    /// 同步设备时间
    /// </summary>
    public class RequestSyncTime
    {
        /// <summary>
        /// 实例化请求实体
        /// </summary>
        public SyncTimeRequest Request { get; set; }
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public RequestSyncTime()
        {
            Request = new SyncTimeRequest();
            Request.Header = new RequestHeader();
            Request.Body = new SyncTimeRequestBody();
        }
    }
    /// <summary>
    /// EAP启动请求实体类
    /// </summary>
    public class SyncTimeRequest : RequestBase
    {
        /// <summary>
        /// 请求Body
        /// </summary>
        public SyncTimeRequestBody Body { get; set; }

    }

    /// <summary>
    /// SyncTime请求的Body属性
    /// </summary>
    public class SyncTimeRequestBody
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public string EqpID { get; set; }
        /// <summary>
        /// 同步时间(yyyyMMddHHmmss)
        /// </summary>
        public string Dtime { get; set; }
    }
}
